package com.itHsuSE.demo2;

public class Work13 {
    public static void main(String[] args) {
        PassObject passObject=new PassObject();
        Circle c=new Circle();
        passObject.printAreas(c,5);
    }
}

class Circle{
    double r;
    public Circle(){

    }
    public Circle(double r){
        this.r=r;
    }
    public double findArea(double r){
        return Math.PI*r*r;
    }
}

class PassObject{
    public void printAreas(Circle c,int times){
        System.out.println("r\tArea");
        for (int i = 1; i <= times; i++) {
            System.out.println(i*1.0+"\t"+c.findArea(i));
        }
    }
}